﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Cloud.Core.Model.Promotion;
using Microsoft.EntityFrameworkCore;

namespace Cloud.Core.Model
{
    public class CloudDataBase : DbContext
    {
        //构造方法
        public CloudDataBase(DbContextOptions<CloudDataBase> options)
            : base(options)
        {

        }

        #region 数据区域
        public DbSet<User> User { get; set; }
        public DbSet<Log> Log { get; set; }
        public DbSet<Balance> Balance { get; set; }
        public DbSet<Department> Department { get; set; }
        public DbSet<CodeMain> Codemain { get; set; }
        public DbSet<CodeTree> CodeTree { get; set; }
        public DbSet<Sensor> Sensor { get; set; }
        public DbSet<Consult> Consult { get; set; }
        public DbSet<Apple> Apple { get; set; }

        public DbSet<Banner> Banner { get; set; }
        public DbSet<NewComerInterlocution> NewComerInterlocution { get; set; }

        
      
        public DbSet<PromotionsUserType> PromotionsUserType { get; set; }
        public DbSet<PromotionsQuestion> PromotionsQuestion { get; set; }
        public DbSet<PromotionUsers> PromotionUsers { get; set; }
        public DbSet<Promotions> Promotions { get; set; }
        public DbSet<PromotionsNewComerQuestion> PromotionsNewComerQuestion { get; set; }
        public DbSet<PromotionsNewComerAnswer> PromotionsNewComerAnswer { get; set; }
        public DbSet<NewComerLuckyDrawRedEnvelope> NewComerLuckyDrawRedEnvelope { get; set; }

        public DbSet<PromotionsUserAddress> PromotionsUserAddress { get; set; }

        
        public DbSet<LuckyDrawCoupon> LuckyDrawCoupon { get; set; }

        public DbSet<UserCouponBag> UserCouponBag { get; set; }


        #endregion

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
        }
    }
}
